package com.cloudbroker.bcs.platform.dav.bizapi.service.business.plugs.vo;

import java.math.BigDecimal;

import javax.validation.constraints.Pattern;

import com.cloudbroker.bcs.common.validatioin.annotation.EnumValue;
import com.cloudbroker.bcs.common.validatioin.annotation.IntegerString;
import com.cloudbroker.bcs.common.validatioin.annotation.Length;
import com.cloudbroker.bcs.common.validatioin.annotation.NotBlank;
import com.cloudbroker.bcs.common.validatioin.annotation.Range;
import com.cloudbroker.bcs.platform.dav.bizapi.service.base.vo.HSBCPSVO;

public class PlugsForm extends HSBCPSVO{
    
    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    @IntegerString
    private String plugs_id;
    
    @NotBlank
    @IntegerString
    @Length(max = 20)
    private String plugs_type_id;
    
    @NotBlank
    @Length(max = 500)
    private String link;
    
    @Length(max = 500)
    private String icon;
    
    @NotBlank
    @Length(max = 50)
    private String name;
    
    @Length(max = 255)
    private String description;
    
    @Range(min = 0, max = 999999999)
    private BigDecimal price  = BigDecimal.ZERO;
    
    @Range(min = 0, max = 999999999)
    private BigDecimal discount_price = BigDecimal.ZERO;
    
    @NotBlank
    @EnumValue(enums = {"1","2","3"})
    private String charge_mod;
    
    @NotBlank
    private String ver;
    
    @NotBlank
    @EnumValue(enums = {"0","1"})
    private String plugs_status;
    
    @NotBlank
    @IntegerString
    private String sort;
    
    
    @NotBlank
    private String code;
    
    @NotBlank
    @Pattern(regexp = "(1,)?(2,)?(3,)?")
    private String term_type;
    
    @NotBlank
    @EnumValue(enums = {"1","2"})
    private String content_source;

    public String getPlugs_id() {
        return plugs_id;
    }

    public void setPlugs_id(String plugs_id) {
        this.plugs_id = plugs_id;
    }

    public String getPlugs_type_id() {
        return plugs_type_id;
    }

    public void setPlugs_type_id(String plugs_type_id) {
        this.plugs_type_id = plugs_type_id;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getDiscount_price() {
        return discount_price;
    }

    public void setDiscount_price(BigDecimal discount_price) {
        this.discount_price = discount_price;
    }

    public String getCharge_mod() {
        return charge_mod;
    }

    public void setCharge_mod(String charge_mod) {
        this.charge_mod = charge_mod;
    }

    public String getVer() {
        return ver;
    }

    public void setVer(String ver) {
        this.ver = ver;
    }

    public String getPlugs_status() {
        return plugs_status;
    }

    public void setPlugs_status(String plugs_status) {
        this.plugs_status = plugs_status;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTerm_type() {
        return term_type;
    }

    public void setTerm_type(String term_type) {
        this.term_type = term_type;
    }

    public String getContent_source() {
        return content_source;
    }

    public void setContent_source(String content_source) {
        this.content_source = content_source;
    }
    
}
